from distutils.core import setup
import py2exe
import shutil
import matplotlib

destination = "Avalanche"

py2exe_options = dict( 
      includes=['numpy','matplotlib.numerix.random_array'],
      excludes=['_gtkagg', '_tkagg', '_ssl','doctest','pdb','pyreadline','optparse',
      'bsddb', 'curses', 'pywin.debugger','pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl','Tkconstants', 'Tkinter', 'pydoc', 'doctest', 'test', 'sqlite3'],
      dll_excludes=['libgdk-win32-2.0-0.dll', 'libgobject-2.0-0.dll', 'tcl84.dll','tk84.dll'],
      compressed=True,
      dist_dir=destination)

setup(name="Avalanche",
      version='0.1',
      data_files=matplotlib.get_py2exe_datafiles(),
      description="Pomodoro inspired productivity tracker",
      author="Mert Dikmen",
      windows=[{"script":'avalanche.py',"icon_resources":[(1,"snow_ball.ico")]}],
      options={'py2exe':py2exe_options})
      
shutil.copyfile("snow_ball.ico", destination + "/snow_ball.ico")
shutil.copyfile("snow_ball.png", destination + "/snow_ball.png")
shutil.copyfile("task_done.wav", destination + "/task_done.wav")
shutil.copyfile("task_start.wav", destination + "/task_start.wav")
shutil.copyfile("chart-16.png", destination + "/chart-16.png")
